ans=[]
for i in range(100,201):
    s=str(i)
    if s[0]==s[2]:
        ans.append(i)
print(ans,len(ans))